import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei'] # 中文
import pltHelp

import csv

csvfile=open("稳态粒子数.csv","r")
reader=csv.reader(csvfile)

x=[]
y1=[]
y2=[]
for i in reader:
    if i[0]=='帧数':
        continue
    else:
        x.append(int(i[0]))
        y1.append(float(i[1]))
        y2.append(float(i[2]))

plt.plot(x, y1, ms=10, label='布局1')
plt.plot(x, y2, ms=10, label='布局2')
plt.legend()  # 让图例生效
pltHelp.show('帧数','稳态粒子数')